home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / Term / Extras / Source / term-source.lha / gtlayout.h < prev    next >
C/C++ Source or Header  |  1996-10-20  |  18KB  |  607 lines

  1. /*
  2. **    $VER: gtlayout.h 35.1 (3.10.96)
  3. **    GadTools layout toolkit
  4. **
  5. **    Copyright © 1993-1996 by Olaf `Olsen' Barthel
  6. **        Freely distributable.
  7. */
  8.  
  9. #ifndef _GTLAYOUT_H
  10. #define _GTLAYOUT_H
  11.  
  12.  
  13. /*****************************************************************************/
  14.  
  15.  
  16. #ifndef INTUITION_GADGETCLASS_H
  17. #include <intuition/gadgetclass.h>
  18. #endif    /* !INTUITION_GADGETCLASS_H */
  19.  
  20. #ifndef LIBRARIES_GADTOOLS_H
  21. #include <libraries/gadtools.h>
  22. #endif    /* !LIBRARIES_GADTOOLS_H */
  23.  
  24.  
  25. /*****************************************************************************/
  26.  
  27.  
  28. /* Kinds of objects supported in addition to the normal GadTools kinds */
  29. #define HORIZONTAL_KIND    45
  30. #define VERTICAL_KIND    46
  31. #define END_KIND    47
  32. #define FRAME_KIND    48
  33. #define BOX_KIND    49
  34. #define XBAR_KIND    51
  35. #define YBAR_KIND    52
  36. #define PASSWORD_KIND    53
  37. #define GAUGE_KIND    54
  38. #define TAPEDECK_KIND    55
  39. #define LEVEL_KIND    56
  40. #define BOOPSI_KIND    57
  41. #define POPUP_KIND    58
  42. #define TAB_KIND    59
  43. #define BLANK_KIND    60
  44.  
  45.  
  46. /*****************************************************************************/
  47.  
  48.  
  49. /* Where to place a gadget label */
  50. enum
  51. {
  52.     PLACE_Left,
  53.     PLACE_Right,
  54.     PLACE_Above,
  55.     PLACE_In,
  56.     PLACE_Below
  57. };
  58.  
  59. /* How to align text lines in BOX_KIND gadgets */
  60. enum
  61. {
  62.     ALIGNTEXT_Left,
  63.     ALIGNTEXT_Centered,
  64.     ALIGNTEXT_Right,
  65.     ALIGNTEXT_Pad
  66. };
  67.  
  68. /* The button images available for TAPEDECK_KIND gadgets. */
  69. enum
  70. {
  71.     TDBT_Backward,
  72.     TDBT_Forward,
  73.     TDBT_Previous,
  74.     TDBT_Next,
  75.     TDBT_Stop,
  76.     TDBT_Pause,
  77.     TDBT_Record,
  78.     TDBT_Rewind,
  79.     TDBT_Eject,
  80.     TDBT_Play,
  81.  
  82.     TDBTLAST
  83. };
  84.  
  85. /* How to align the window opened by LT_Build() on the screen. */
  86. #define ALIGNF_Right        (1 << 0)
  87. #define ALIGNF_Left        (1 << 1)
  88. #define ALIGNF_Top        (1 << 2)
  89. #define ALIGNF_Bottom        (1 << 3)
  90. #define ALIGNF_ExtraRight    (1 << 4)
  91. #define ALIGNF_ExtraLeft    (1 << 5)
  92. #define ALIGNF_ExtraTop        (1 << 6)
  93. #define ALIGNF_ExtraBottom    (1 << 7)
  94.  
  95.  
  96. /*****************************************************************************/
  97.  
  98.  
  99. /* Generic tags, applicable for several object types */
  100. #define LA_Chars        TAG_USER+2
  101. #define LA_LabelPlace        TAG_USER+3
  102. #define LA_ExtraSpace        TAG_USER+4
  103. #define LA_NoKey        TAG_USER+30
  104. #define LA_HighLabel        TAG_USER+31
  105. #define LA_LabelText        TAG_USER+37
  106. #define LA_LabelID        TAG_USER+38
  107. #define LA_ID            TAG_USER+39
  108. #define LA_Type            TAG_USER+40
  109. #define LA_PageSelector        TAG_USER+79
  110. #define LA_LabelChars        TAG_USER+107
  111.  
  112. /* Storage type tags */
  113. #define LA_BYTE            TAG_USER+63
  114. #define LA_UBYTE        TAG_USER+64
  115. #define LA_WORD            TAG_USER+65
  116. #define LA_BOOL            TAG_USER+65
  117. #define LA_UWORD        TAG_USER+66
  118. #define LA_LONG            TAG_USER+67
  119. #define LA_ULONG        TAG_USER+68
  120. #define LA_STRPTR        TAG_USER+69
  121.  
  122. /* for use with LT_GetAttributes() only */
  123. #define LA_Left            TAG_USER+16
  124. #define LA_Top            TAG_USER+17
  125. #define LA_Width        TAG_USER+18
  126. #define LA_Height        TAG_USER+19
  127. #define LA_LabelLeft        TAG_USER+114
  128. #define LA_LabelTop        TAG_USER+115
  129.  
  130. /* BOOPSI_KIND */
  131. #define LABO_TagCurrent        TAG_USER+119
  132. #define LABO_TagTextAttr    TAG_USER+120
  133. #define LABO_TagDrawInfo    TAG_USER+121
  134. #define LABO_TagLink        TAG_USER+129
  135. #define LABO_TagScreen        TAG_USER+132
  136. #define LABO_Link        LALV_Link
  137. #define LABO_ClassInstance    TAG_USER+122
  138. #define LABO_ClassName        TAG_USER+123
  139. #define LABO_ClassLibraryName    TAG_USER+124
  140. #define LABO_ExactWidth        TAG_USER+127
  141. #define LABO_ExactHeight    TAG_USER+128
  142. #define LABO_RelFontHeight    TAG_USER+131
  143. #define LABO_Object        TAG_USER+133
  144. #define LABO_FullWidth        TAG_USER+135
  145. #define LABO_FullHeight        TAG_USER+136
  146. #define LABO_ActivateHook    TAG_USER+141
  147.  
  148. /* BOX_KIND */
  149. #define LABX_Labels        TAG_USER+12
  150. #define LABX_Lines        TAG_USER+13
  151. #define LABX_Chars        TAG_USER+2
  152. #define LABX_Rows        TAG_USER+1
  153. #define LABX_Index        TAG_USER+14
  154. #define LABX_Text        TAG_USER+15
  155. #define LABX_AlignText        TAG_USER+27
  156. #define LABX_DrawBox        TAG_USER+11
  157. #define LABX_FirstLabel        TAG_USER+44
  158. #define LABX_LastLabel        TAG_USER+45
  159. #define LABX_ReserveSpace    TAG_USER+72
  160. #define LABX_LabelTable        TAG_USER+98
  161. #define LABX_FirstLine        TAG_USER+152
  162. #define LABX_LastLine        TAG_USER+153
  163. #define LABX_LineTable        TAG_USER+156
  164. #define LABX_Line        TAG_USER+161
  165. #define LABX_LineID        TAG_USER+162
  166.  
  167. /* BUTTON_KIND */
  168. #define LABT_ReturnKey        TAG_USER+34
  169. #define LABT_DefaultButton    TAG_USER+34
  170. #define LABT_EscKey        TAG_USER+56
  171. #define LABT_ExtraFat        TAG_USER+29
  172. #define LABT_Lines        TAG_USER+140
  173. #define LABT_FirstLine        TAG_USER+44
  174. #define LABT_LastLine        TAG_USER+45
  175. #define LABT_DefaultCorrection    TAG_USER+145
  176. #define LABT_Smaller        TAG_USER+147
  177.  
  178. /* CYCLE_KIND */
  179. #define LACY_FirstLabel        TAG_USER+44
  180. #define LACY_LastLabel        TAG_USER+45
  181. #define LACY_LabelTable        TAG_USER+98
  182. #define LACY_AutoPageID        TAG_USER+103
  183. #define LACY_TabKey        TAG_USER+118
  184.  
  185. /* FRAME_KIND */
  186. #define LAFR_InnerWidth        TAG_USER+9
  187. #define LAFR_InnerHeight    TAG_USER+10
  188. #define LAFR_DrawBox        TAG_USER+11
  189. #define LAFR_RefreshHook    TAG_USER+117
  190. #define LAFR_GenerateEvents    TAG_USER+155
  191.  
  192. /* GAUGE_KIND */
  193. #define LAGA_Percent        TAG_USER+36
  194. #define LAGA_InfoLength        TAG_USER+70
  195. #define LAGA_InfoText        TAG_USER+71
  196. #define LAGA_NoTicks        TAG_USER+143
  197. #define LAGA_Discrete        TAG_USER+144
  198. #define LAGA_Tenth        TAG_USER+144
  199.  
  200. /* INTEGER_KIND */
  201. #define LAIN_LastGadget        TAG_USER+28
  202. #define LAIN_Min        TAG_USER+23
  203. #define LAIN_Max        TAG_USER+24
  204. #define LAIN_UseIncrementers    TAG_USER+57
  205. #define LAIN_Incrementers    TAG_USER+57
  206. #define LAIN_HistoryLines    TAG_USER+59
  207. #define LAIN_HistoryHook    TAG_USER+80
  208. #define LAIN_IncrementerHook    TAG_USER+85
  209. #define LAIN_Activate        TAG_USER+148
  210.  
  211. /* LISTVIEW_KIND */
  212. #define LALV_ExtraLabels    TAG_USER+26
  213. #define LALV_Labels        TAG_USER+33
  214. #define LALV_CursorKey        TAG_USER+35
  215. #define LALV_Columns        TAG_USER+2
  216. #define LALV_Lines        TAG_USER+1
  217. #define LALV_Link        TAG_USER+7
  218. #define LALV_FirstLabel        TAG_USER+44
  219. #define LALV_LastLabel        TAG_USER+45
  220. #define LALV_MaxGrowX        TAG_USER+77
  221. #define LALV_MaxGrowY        TAG_USER+78
  222. #define LALV_LabelTable        TAG_USER+98
  223. #define LALV_LockSize        TAG_USER+106
  224. #define LALV_ResizeX        TAG_USER+109
  225. #define LALV_ResizeY        TAG_USER+110
  226. #define LALV_MinChars        TAG_USER+111
  227. #define LALV_MinLines        TAG_USER+112
  228. #define LALV_FlushLabelLeft    TAG_USER+113
  229. #define LALV_TextAttr        TAG_USER+138
  230. #define LALV_AutoPageID        TAG_USER+103
  231. #define LALV_Selected        TAG_USER+167
  232.  
  233. /* LEVEL_KIND */
  234. #define LAVL_Min        GTSL_Min
  235. #define LAVL_Max        GTSL_Max
  236. #define LAVL_Level        GTSL_Level
  237. #define LAVL_LevelFormat    GTSL_LevelFormat
  238. #define LAVL_LevelPlace        GTSL_LevelPlace
  239. #define LAVL_DispFunc        GTSL_DispFunc
  240. #define LAVL_FullCheck        LASL_FullCheck
  241.  
  242. /* MX_KIND */
  243. #define LAMX_FirstLabel        TAG_USER+44
  244. #define LAMX_LastLabel        TAG_USER+45
  245. #define LAMX_LabelTable        TAG_USER+98
  246. #define LAMX_TabKey        TAG_USER+118
  247. #define LAMX_AutoPageID        TAG_USER+103
  248.  
  249. /* PALETTE_KIND */
  250. #define LAPA_SmallPalette    TAG_USER+32
  251. #define LAPA_Lines        LA_Lines
  252. #define LAPA_UsePicker        TAG_USER+137
  253. #define LAPA_Picker        TAG_USER+137
  254.  
  255. /* PASSWORD_KIND */
  256. #define LAPW_String             GTST_String
  257. #define LAPW_LastGadget        TAG_USER+28
  258. #define LAPW_HistoryLines    TAG_USER+59
  259. #define LAPW_HistoryHook    TAG_USER+80
  260. #define LAPW_Activate        TAG_USER+148
  261. #define LAPW_MaxChars        GTST_MaxChars
  262.  
  263. /* POPUP_KIND */
  264. #define LAPU_FirstLabel        TAG_USER+44
  265. #define LAPU_LastLabel        TAG_USER+45
  266. #define LAPU_LabelTable        TAG_USER+98
  267. #define LAPU_AutoPageID        TAG_USER+103
  268. #define LAPU_TabKey        TAG_USER+118
  269. #define LAPU_Labels        GTCY_Labels
  270. #define LAPU_Active        GTCY_Active
  271. #define LAPU_CentreActive    TAG_USER+163
  272.  
  273. /* SLIDER_KIND */
  274. #define LASL_FullCheck        TAG_USER+22
  275.  
  276. /* SCROLLER_KIND */
  277. #define LASC_Thin        TAG_USER+62
  278.  
  279. /* STRING_KIND */
  280. #define LAST_LastGadget        TAG_USER+28
  281. #define LAST_Link        TAG_USER+7
  282. #define LAST_Picker        TAG_USER+5
  283. #define LAST_UsePicker        TAG_USER+5
  284. #define LAST_HistoryLines    TAG_USER+59
  285. #define LAST_HistoryHook    TAG_USER+80
  286. #define LAST_CursorPosition    TAG_USER+105
  287. #define LAST_Activate        TAG_USER+148
  288. #define LAST_ValidateHook    TAG_USER+165
  289.  
  290. /* TAB_KIND */
  291. #define LATB_FirstLabel        TAG_USER+44
  292. #define LATB_LastLabel        TAG_USER+45
  293. #define LATB_LabelTable        TAG_USER+98
  294. #define LATB_AutoPageID        TAG_USER+103
  295. #define LATB_TabKey        TAG_USER+118
  296. #define LATB_Labels        GTCY_Labels
  297. #define LATB_Active        GTCY_Active
  298. #define LATB_FullWidth        TAG_USER+149
  299. #define LATB_FullSize        TAG_USER+149
  300.  
  301. /* TAPEDECK_KIND */
  302. #define LATD_ButtonType        TAG_USER+86
  303. #define LATD_Toggle        TAG_USER+87
  304. #define LATD_Pressed        TAG_USER+88
  305. #define LATD_Smaller        TAG_USER+89
  306. #define LATD_Tick        TAG_USER+139
  307.  
  308. /* TEXT_KIND */
  309. #define LATX_Picker        TAG_USER+5
  310. #define LATX_UsePicker        TAG_USER+5
  311. #define LATX_LockSize        TAG_USER+106
  312.  
  313. /* VERTICAL_KIND and HORIZONTAL_KIND */
  314. #define LAGR_Spread        TAG_USER+6
  315. #define LAGR_SameSize        TAG_USER+8
  316. #define LAGR_LastAttributes    TAG_USER+46
  317. #define LAGR_ActivePage        TAG_USER+58
  318. #define LAGR_Frame        TAG_USER+104
  319. #define LAGR_IndentX        TAG_USER+130
  320. #define LAGR_IndentY        TAG_USER+134
  321. #define LAGR_NoIndent        TAG_USER+146
  322. #define LAGR_SameWidth        TAG_USER+150
  323. #define LAGR_SameHeight        TAG_USER+151
  324.  
  325. /* XBAR_KIND */
  326. #define LAXB_FullSize        TAG_USER+50
  327. #define LAXB_FullWidth        TAG_USER+50
  328.  
  329. /* Applicable for layout handle only */
  330. #define LAHN_TextAttr        TAG_USER+41
  331. #define LAHN_AutoActivate    TAG_USER+42
  332. #define LAHN_LocaleHook        TAG_USER+4
  333. #define LAHN_CloningPermitted    TAG_USER+61
  334. #define LAHN_EditHook        TAG_USER+74
  335. #define LAHN_ExactClone        TAG_USER+75
  336. #define LAHN_MenuGlyphs        TAG_USER+76
  337. #define LAHN_Parent        TAG_USER+83
  338. #define LAHN_BlockParent    TAG_USER+84
  339. #define LAHN_SimpleClone    TAG_USER+90
  340. #define LAHN_ExitFlush        TAG_USER+108
  341. #define LAHN_UserData        TAG_USER+116
  342. #define LAHN_RawKeyFilter    TAG_USER+142
  343. #define LAHN_DontPickShortcuts    TAG_USER+154
  344. #define LAHN_NoKeys        TAG_USER+154
  345. #define LAHN_PubScreen        TAG_USER+157
  346. #define LAHN_PubScreenName    TAG_USER+158
  347. #define LAHN_PubScreenFallBack    TAG_USER+159
  348.  
  349. /* Applicable for menus only. */
  350. #define LAMN_FirstLabel        LABX_FirstLabel
  351. #define LAMN_LastLabel        LABX_LastLabel
  352. #define LAMN_LabelTable        TAG_USER+98
  353. #define LAMN_TitleText        TAG_USER+17000
  354. #define LAMN_TitleID        TAG_USER+17001
  355. #define LAMN_ItemText        TAG_USER+17002
  356. #define LAMN_ItemID        TAG_USER+17003
  357. #define LAMN_SubText        TAG_USER+17004
  358. #define LAMN_SubID        TAG_USER+17005
  359. #define LAMN_KeyText        TAG_USER+17006
  360. #define LAMN_KeyID        TAG_USER+17007
  361. #define LAMN_CommandText    TAG_USER+17008
  362. #define LAMN_CommandID        TAG_USER+17009
  363. #define LAMN_MutualExclude    TAG_USER+17010
  364. #define LAMN_UserData        TAG_USER+17011
  365. #define LAMN_Disabled        TAG_USER+17012
  366. #define LAMN_CheckIt        TAG_USER+17013
  367. #define LAMN_Checked        TAG_USER+17014
  368. #define LAMN_Toggle        TAG_USER+17015
  369. #define LAMN_Code        TAG_USER+17016
  370. #define LAMN_Qualifier        TAG_USER+17017
  371. #define LAMN_Char        TAG_USER+17018
  372. #define LAMN_ID            TAG_USER+17019
  373. #define LAMN_AmigaGlyph        TAG_USER+17020
  374. #define LAMN_CheckmarkGlyph    TAG_USER+17021
  375. #define LAMN_Error        TAG_USER+17022
  376. #define LAMN_Screen        TAG_USER+17023
  377. #define LAMN_TextAttr        TAG_USER+17024
  378. #define LAMN_LayoutHandle    TAG_USER+17025
  379. #define LAMN_Handle        TAG_USER+17025
  380. #define LAMN_ExtraSpace        TAG_USER+17026
  381. #define LAMN_FullMenuNum    TAG_USER+160
  382.  
  383. /* Applicable for window only */
  384. #define LAWN_Menu        TAG_USER+25
  385. #define LAWN_UserPort        TAG_USER+47
  386. #define LAWN_Left        TAG_USER+48
  387. #define LAWN_Top        TAG_USER+49
  388. #define LAWN_Zoom        TAG_USER+50
  389. #define LAWN_MaxPen        TAG_USER+52
  390. #define LAWN_BelowMouse        TAG_USER+53
  391. #define LAWN_MoveToWindow    TAG_USER+54
  392. #define LAWN_AutoRefresh    TAG_USER+55
  393. #define LAWN_HelpHook        TAG_USER+73
  394. #define LAWN_Parent        TAG_USER+81
  395. #define LAWN_BlockParent    TAG_USER+82
  396. #define LAWN_SmartZoom        TAG_USER+91
  397. #define LAWN_Title        TAG_USER+92
  398. #define LAWN_TitleText        TAG_USER+92
  399. #define LAWN_Bounds        TAG_USER+93
  400. #define LAWN_ExtraWidth        TAG_USER+94
  401. #define LAWN_ExtraHeight    TAG_USER+95
  402. #define LAWN_IDCMP        TAG_USER+96
  403. #define LAWN_AlignWindow    TAG_USER+97
  404. #define LAWN_TitleID        TAG_USER+99
  405. #define LAWN_FlushLeft        TAG_USER+14000    /* NOTEZ-BIEN: TAG_USER+99 = WA_Dummy and can clash */
  406. #define LAWN_FlushTop        TAG_USER+14001    /*             with Intuition!                      */
  407. #define LAWN_Show        TAG_USER+14002
  408. #define LAWN_MenuTemplate    TAG_USER+14003
  409. #define LAWN_MenuTags        TAG_USER+14004
  410. #define LAWN_NoInitialRefresh    TAG_USER+164
  411. #define LAWN_LimitWidth        TAG_USER+165
  412. #define LAWN_LimitHeight    TAG_USER+166
  413.  
  414. /* Private tags; do not use, or you'll run into trouble! */
  415. #define LA_Private1        TAG_USER+100
  416. #define LA_Private2        TAG_USER+101
  417.  
  418. /* Last tag item value used */
  419. #define LAST_TAG        TAG_USER+167
  420.  
  421.  
  422. /*****************************************************************************/
  423.  
  424.  
  425. /* Identifies the absence of a link for a listview or a string gadget */
  426. #define NIL_LINK (-2)
  427.  
  428. /* String gadget type history hook support: you will either get
  429.  * the following value passed as the message parameter to your
  430.  * hook function, or a pointer to a null-terminated string you should
  431.  * copy and create a Node from, which you should then add to the tail
  432.  * of your history list. Place a pointer to your history list in the
  433.  * Hook.h_Data entry.
  434.  */
  435. #define HISTORYHOOK_DiscardOldest (0)
  436.  
  437. /* Refresh hook support: you will get the following structure
  438.  * passed as the message and a pointer to the LayoutHandle as
  439.  * the object.
  440.  */
  441. typedef struct RefreshMsg
  442. {
  443.     LONG    ID;
  444.     WORD    Left;
  445.     WORD    Top;
  446.     WORD    Width;
  447.     WORD    Height;
  448. } RefreshMsg;
  449.  
  450. /* Incrementer hook support: you will get the current value
  451.  * passed as the object and one of the following values as
  452.  * the message. Return the number to be used.
  453.  */
  454. enum
  455. {
  456.     INCREMENTERMSG_Decrement = -1,    /* Decrement value */
  457.     INCREMENTERMSG_Initial   =  0,    /* Initial value passed upon gadget creation */
  458.     INCREMENTERMSG_Increment =  1    /* Increment value */
  459. };
  460.  
  461. /* Help key hook support: the hook will be called with a "struct IBox *"
  462.  * as the object and a "struct HelpMsg *". The IBox describes the object
  463.  * the mouse was positioned over, such as a button, a listview, etc.
  464.  * The "ObjectID" will indicate the ID of the object the mouse was
  465.  * positioned over. The ID will be -1 if no object was to be found.
  466.  */
  467. typedef struct HelpMsg
  468. {
  469.     struct LayoutHandle    *Handle;    /* Window layout handle */
  470.     LONG             ObjectID;    /* ID of the object, -1 for full window */
  471. } HelpMsg;
  472.  
  473. /* The central data structure of the layout process. */
  474. typedef struct LayoutHandle
  475. {
  476.     struct Screen    *Screen;
  477.     struct DrawInfo    *DrawInfo;
  478.     struct Window    *Window;
  479.     APTR         VisualInfo;
  480.     struct Image    *AmigaGlyph,
  481.             *CheckGlyph;
  482.     APTR         UserData;    /* Requires gtlayout.library v9 */
  483.     struct Menu    *Menu;        /* Requires gtlayout.library v13 */
  484.     /* private fields follow.... */
  485. } LayoutHandle;
  486.  
  487.  
  488. /*****************************************************************************/
  489.  
  490.  
  491. /* Handy for LT_LevelWidth and LT_NewLevelWidth */
  492. typedef LONG (* DISPFUNC)(struct Gadget *gad,LONG value,...);
  493.  
  494.  
  495. /*****************************************************************************/
  496.  
  497.  
  498. /* Useful macros */
  499. #define LT_GetString(Handle,Code)    ((STRPTR)LT_GetAttributesA((Handle),(Code),NULL))
  500.  
  501. #define LAMN_Menu_UserData(m)        (*(APTR *)(((struct Menu *)(m)) + 1))
  502. #define LAMN_Menu_ID(m)            (((ULONG *)(((struct Menu *)(m)) + 1))[1])
  503.  
  504. #define LAMN_Item_UserData(m)        (*(APTR *)(((struct MenuItem *)(m)) + 1))
  505. #define LAMN_Item_ID(m)            (((ULONG *)(((struct MenuItem *)(m)) + 1))[1])
  506.  
  507.  
  508. /*****************************************************************************/
  509.  
  510. #ifdef GTLAYOUT_OBSOLETE
  511. /* Obsolete tags, don't use in new code */
  512. #define LA_Lines        LABX_Rows
  513. #define LA_Spread        LAGR_Spread
  514. #define LA_SameSize        LAGR_SameSize
  515. #define LA_FullCheck        LASL_FullCheck
  516. #define LA_ExtraLabels        LALV_ExtraLabels
  517. #define LA_LastGadget        TAG_USER+28
  518. #define LA_SmallPalette        LAPA_SmallPalette
  519. #define LA_Labels        LALV_Labels
  520. #define LA_Picker        LATX_Picker
  521. #define LA_DrawBox        LAFR_DrawBox
  522. #define LA_FirstLabel        LABX_FirstLabel
  523. #define LA_LastLabel        LABX_LastLabel
  524. #define LA_LabelTable        LABX_LabelTable
  525. #define LA_Min            TAG_USER+23
  526. #define LA_Max            TAG_USER+24
  527. #define LA_Link            LALV_Link
  528. #define LA_Menu            LAWN_Menu
  529. #define LA_HistoryLines        LAST_HistoryLines
  530. #define LA_HistoryHook        LAST_HistoryHook
  531. #define LA_ReturnKey        LABT_ReturnKey
  532. #define LA_ExtraFat        LABT_ExtraFat
  533. #define LA_CursorKey        LALV_CursorKey
  534. #define STORE_BYTE        TAG_USER+63
  535. #define STORE_UBYTE        TAG_USER+64
  536. #define STORE_WORD        TAG_USER+65
  537. #define STORE_BOOL        TAG_USER+65
  538. #define STORE_UWORD        TAG_USER+66
  539. #define STORE_LONG        TAG_USER+67
  540. #define STORE_ULONG        TAG_USER+68
  541. #define STORE_STRPTR        TAG_USER+69
  542. #define LAHN_Font        TAG_USER+41
  543. #define LH_Font            TAG_USER+41
  544. #define LH_AutoActivate        TAG_USER+42
  545. #define LH_LocaleHook        TAG_USER+4
  546. #define LH_CloningPermitted    TAG_USER+61
  547. #define LH_EditHook        TAG_USER+74
  548. #define LH_ExactClone        TAG_USER+75
  549. #define LH_MenuGlyphs        TAG_USER+76
  550. #define LH_Parent        TAG_USER+83
  551. #define LH_BlockParent        TAG_USER+84
  552. #define LH_SimpleClone        TAG_USER+90
  553. #define LH_ExitFlush        TAG_USER+108
  554. #define LH_UserData        TAG_USER+116
  555. #define LH_RawKeyFilter        TAG_USER+142
  556.  
  557.  
  558. /* Obsolete defines, don't use in new code */
  559. #define PLACE_LEFT        PLACE_Left
  560. #define PLACE_RIGHT        PLACE_Right
  561. #define PLACE_ABOVE        PLACE_Above
  562. #define PLACE_IN        PLACE_In
  563. #define PLACE_BELOW        PLACE_Below
  564.  
  565. #define ALIGNTEXT_LEFT        ALIGNTEXT_Left
  566. #define ALIGNTEXT_CENTERED    ALIGNTEXT_Centered
  567. #define ALIGNTEXT_RIGHT        ALIGNTEXT_Right
  568. #define ALIGNTEXT_PAD        ALIGNTEXT_Pad
  569.  
  570. #define TDBT_BACKWARD        TDBT_Backward
  571. #define TDBT_FORWARD        TDBT_Forward
  572. #define TDBT_PREVIOUS        TDBT_Previous
  573. #define TDBT_NEXT        TDBT_Next
  574. #define TDBT_STOP        TDBT_Stop
  575. #define TDBT_PAUSE        TDBT_Pause
  576. #define TDBT_RECORD        TDBT_Record
  577. #define TDBT_REWIND        TDBT_Rewind
  578. #define TDBT_EJECT        TDBT_Eject
  579. #define TDBT_PLAY        TDBT_Play
  580.  
  581. #define ALIGNF_RIGHT        ALIGNF_Right
  582. #define ALIGNF_LEFT        ALIGNF_Left
  583. #define ALIGNF_TOP        ALIGNF_Top
  584. #define ALIGNF_BOTTOM        ALIGNF_Bottom
  585. #define ALIGNF_EXTRA_RIGHT    ALIGNF_ExtraRight
  586. #define ALIGNF_EXTRA_LEFT    ALIGNF_ExtraLeft
  587. #define ALIGNF_EXTRA_TOP    ALIGNF_ExtraTop
  588. #define ALIGNF_EXTRA_BOTTOM    ALIGNF_ExtraBottom
  589.  
  590. #define HISTORYHOOK_DISCARD_OLDEST    HISTORYHOOK_DiscardOldest
  591.  
  592. #define INCREMENTERMSG_DECREMENT    INCREMENTERMSG_Decrement
  593. #define INCREMENTERMSG_INITIAL        INCREMENTERMSG_Initial
  594. #define INCREMENTERMSG_INCREMENT    INCREMENTERMSG_Increment
  595.  
  596. /* Obsolete routines redone as macros. */
  597. #define LT_GetDrawInfo(Handle)        ((Handle) ? ((Handle) -> DrawInfo)    : NULL)
  598. #define LT_GetVisualInfo(Handle)    ((Handle) ? ((Handle) -> VisualInfo)    : NULL)
  599. #define LT_GetScreen(Handle)        ((Handle) ? ((Handle) -> Screen)    : NULL)
  600. #define LT_SetAutoActivate(Handle,Mode)    LT_SetAttributes(Handle,0,LH_AutoActivate,Mode,TAG_DONE)
  601. #endif    /* GTLAYOUT_OBSOLETE */
  602.  
  603. /*****************************************************************************/
  604.  
  605.  
  606. #endif    /* _GTLAYOUT_H */
  607.